package com.example.nettydemo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author WZW
 * @date 2020/5/8
 */
@Component
public class AtomicIntegerConvert implements Converter<Integer, AtomicInteger> {
    @Override
    public AtomicInteger convert(Integer integer) {
        return new AtomicInteger(integer);
    }
}
